import { Schema, model } from "mongoose";

const GamesSchema = new Schema(
    {
        // 游戏名称
        name: {
            type: String,
            required: true
        },
        // 游戏描述
        desc: {
            type: String,
            required: true
        },
        // 游戏图标
        icon: {
            type: String,
            required: true
        },
        // 游戏链接
        route: {
            type: String,
            required: true
        },
        play_method: {
            type: String,
            default: ""
        },
        // 排序
        sort: {
            type: Number,
            default: 0
        }
    }, { versionKey: false, timestamps: true }
)

export default model('Games', GamesSchema, 'games')